# https://www.bilibili.com/video/BV1W7411G7wP/?p=3&spm_id_from=pageDriver&vd_source=8bd7b24b38e3e12c558d839b352b32f4
import pandas as pd

# 视频前半段介绍了一下Series

s1 = pd.Series([1, 2, 3], index=[1, 2, 3], name='A')
s2 = pd.Series([10, 20, 30], index=[1, 2, 3], name='B')
s3 = pd.Series([100, 200, 300], index=[1, 2, 3], name='C')

# 列
df = pd.DataFrame({s1.name:s1, s2.name: s2, s3.name: s3})
print(df)

# 行
df2 = pd.DataFrame([s1, s2, s3])
print(df2)